<?php

namespace App\Module\Api\Validator;

use App\System\Base\Validator\BaseValidator;
use Illuminate\Http\Request;


class FeedbackValidator extends BaseValidator
{
    protected $rules = [
        'q.a' => 'required|integer|between:1,4',
        'q.id' => 'required_if:q.a,2,3|integer',
        'q.content'=>'required',
        'q.mobile'=>'required'
    ];

    protected $messages = [

    ];

    protected $attributes = [
        'q.a' => '请求类型',
        'q.id' => 'id',
        'q.content'=>'内容',
        'q.mobile'=>'手机号'
    ];
}
